﻿namespace WebsocketDemo.Mode
{
    public class UniverWorksheet
    {
        /// <summary>
        /// 列
        /// </summary>
        public Dictionary<string,Dictionary<string, UniverCellData>>? CellData { get; set; } =new Dictionary<string, Dictionary<string, UniverCellData>>();
        /// <summary>
        /// 列数
        /// </summary>
        public decimal? ColumnCount { get; set; }
        /// <summary>
        /// 列数据
        /// </summary>
        public dynamic? ColumnData { get; set; }
        /// <summary>
        /// 列高
        /// </summary>
        public dynamic? ColumnHeader { get; set; }
        /// <summary>
        /// 默认列宽
        /// </summary>
        public decimal? DefaultColumnWidth { get; set; }
        /// <summary>
        /// 默认列高
        /// </summary>
        public decimal? DefaultRowHeight { get; set; }
        /// <summary>
        /// 列高
        /// </summary>
        public dynamic? Freeze { get; set; }
        /// <summary>
        /// 是否隐藏
        /// </summary>
        public decimal? Hidden { get; set; }

        /// <summary>
        /// ID
        /// </summary>
        public string? Id { get; set; }
        /// <summary>
        /// 合并
        /// </summary>
        public List<UniverMergeData>? MergeData { get; set; }
        /// <summary>
        /// 名字
        /// </summary>
        public string? Name { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string? RightToLeft { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public decimal? RowCount { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public dynamic? RowData { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public dynamic? RowHeader { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public decimal? ScrollLeft { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public decimal? ScrollTop { get; set; }
        public string? ShowGridlines { get; set; }
        public string? TabColor { get; set; }
        public decimal? ZoomRatio { get; set; }


    }


    public class UniverMergeData
    {
        public string? EndAbsoluteRefType { get; set; }
        public decimal? EndColumn { get; set; }
        public decimal? EndRow { get; set; }

        public string? RangeType { get; set; }
        public string? StartAbsoluteRefType { get; set; }
        public decimal? StartColumn { get; set; }
        public decimal? StartRow { get; set; }
    }
}
